package cn.tedu.tmall.admin.mall.dao.persist.repository.impl;

import cn.tedu.tmall.admin.mall.dao.persist.mapper.GoodsDetailMapper;
import cn.tedu.tmall.admin.mall.dao.persist.repository.IGoodsDetailRepository;
import cn.tedu.tmall.admin.mall.pojo.entity.GoodsDetail;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

@Repository
public class GoodsDetailRepositoryImpl implements IGoodsDetailRepository {

    @Autowired
    private GoodsDetailMapper goodsDetailMapper;

    @Override
    public int insert(GoodsDetail goodsDetail) {
        return goodsDetailMapper.insert(goodsDetail);
    }
}
